
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>{{Config::get('app.title')}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- <script type="text/javascript" src="/h/js/jquery-1.9.0.min.js"></script> -->
<script type="text/javascript" src="/h/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/layer/layer.js"></script>

<link href="/h/css/login2.css" rel="stylesheet" type="text/css" />

    <style type="text/css" rel="stylesheet">
        #register_box{
            width:400px;
            height:100px;
            background-color:#ccc;
            color:red;
            margin:auto;
        }
    </style>
</head>
<body>


@if (count($errors) > 0)
                <div id="register_box">
                <!-- <button type="button" class="close" data-dismiss="alert">×</button> -->
                    <ul>
                        @if(is_object($errors))
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        @else
                            <li>{{ $errors }}</li>
                        @endif
                    </ul>
                </div>
            @endif

<div class="login" style="margin-top:50px;">

    <div class="header">
        <div class="switch" id="switch">
            <a class="switch_btn_focus" id="switch_qlogin" href="javascript:void(0);" tabindex="7">请输入用户邮箱</a>
            <div class="switch_bottom" id="switch_bottom" style="position: absolute; width: 64px; left: 0px;"></div>
        </div>
    </div>


    <div class="web_qr_login" id="web_qr_login" style="display: block; height: 235px;">


            <!--登录-->
            <div class="web_login" id="web_login">


               <div class="login-box">


            <div class="login_form">
                <form action="/home/do_email" name="loginform" accept-charset="utf-8" id="login_form" class="loginForm" method="post" onsubmit="return true">
                {{ csrf_field() }}
                <div class="uinArea" id="uinArea">
                <label class="input-tips" for="u">邮箱：</label>
                <div class="inputOuter" id="uArea">
                    <input type="text" id="email" name="email" class="inputstyle"/>
                    <span id="pan1"></span>
                </div>
                </div><br/>
                
                <script type="text/javascript" src="/h/js/jquery-1.8.3.min.js"></script>
                <script>
                    var email=document.getElementById('email');
                    var pan1=document.getElementById('pan1');
                   
                        email.onfocus=function(){
                             pan1.innerHTML="<font style='color:#ccc;'>请输入邮箱</font>"; 
                        }
                        email.onblur=function(){
                            $.get('/home/ajax_pass',{'email':$('#email').val()},function(msg){
                                
                                if(msg==0)
                                {
                                   pan1.innerHTML="<font style='color:green;'>邮箱存在</font>";
                                  
                                }else{
                                    pan1.innerHTML="<font style='color:red;'>邮箱不存在</font>";
                                    
                                }
                             })
                        }

                </script>
                

                    验证码：<input type="text" id="us" name="code" class="inputstyle" style="width:100px;"/>
                    <img src="/code" alt="" onclick="this.src=this.src+'?a='+Math.random()">
               
               

                <div style="padding-left:50px;margin-top:20px;">
                    <input type="submit" value="下一步" style="width:150px;" class="button_blue" id="login"/>

                </div>

              </form>
           </div>

                </div>
                    
            </div>
            <!--登录end-->
  </div>



</div>


</body>
</html>